using System.IO;
using UnityEditor.AssetImporters;
using UnityEngine;

[ScriptedImporter(1, ".dj")]
public class DJImporter : ScriptedImporter
{
    public override void OnImportAsset(AssetImportContext ctx)
    {
        var src = File.ReadAllText(ctx.assetPath);
        var textAsset = new TextAsset(src);

        ctx.AddObjectToAsset("Source", textAsset);
        ctx.SetMainObject(textAsset);
    }
}
